home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Asm / AB3DIIsrc / source_4000 / LevelData2 < prev    next >
Encoding:
Text File  |  1996-07-28  |  3.1 KB  |  157 lines

  1.  
  2.  
  3. *************************************************************
  4. * SET UP INITIAL POSITION OF PLAYER *************************
  5. *************************************************************
  6.  
  7. INITPLAYER:
  8.  move.l LEVELDATA,a1
  9.  add.l #160*10,a1
  10.  move.w 4(a1),d0
  11.  move.l ZoneAdds,a0
  12.  move.l (a0,d0.w*4),d0
  13.  add.l LEVELDATA,d0
  14.  move.l d0,PLR1_Roompt
  15.  move.l PLR1_Roompt,a0
  16.  move.l ToZoneFloor(a0),d0
  17.  sub.l #playerheight,d0
  18.  move.l d0,PLR1s_yoff
  19.  move.l d0,PLR1_yoff
  20.  move.l d0,PLR1s_tyoff
  21.  move.l PLR1_Roompt,PLR1_OldRoompt
  22.  
  23.  move.l LEVELDATA,a1
  24.  add.l #160*10,a1
  25.  move.w 10(a1),d0
  26.  move.l ZoneAdds,a0
  27.  move.l (a0,d0.w*4),d0
  28.  add.l LEVELDATA,d0
  29.  move.l d0,PLR2_Roompt
  30.  move.l PLR2_Roompt,a0
  31.  move.l ToZoneFloor(a0),d0
  32.  sub.l #playerheight,d0
  33.  move.l d0,PLR2s_yoff
  34.  move.l d0,PLR2_yoff
  35.  move.l d0,PLR2s_tyoff
  36.  move.l d0,PLR2_yoff
  37.  
  38.  move.l PLR2_Roompt,PLR2_OldRoompt
  39.  
  40.  
  41.  move.w (a1),PLR1s_xoff
  42.  move.w 2(a1),PLR1s_zoff 
  43.  move.w (a1),PLR1_xoff
  44.  move.w 2(a1),PLR1_zoff 
  45.  move.w 6(a1),PLR2s_xoff
  46.  move.w 8(a1),PLR2s_zoff 
  47.  move.w 6(a1),PLR2_xoff
  48.  move.w 8(a1),PLR2_zoff 
  49.  rts
  50.  
  51. *************************************************
  52. * Floor lines:                                  *
  53. * A floor line is a line seperating two rooms.  *
  54. * The data for the line is therefore:           *
  55. * x,y,dx,dy,Room1,Room2                         *
  56. * For ease of editing the lines are initially   *
  57. * stored in the form startpt,endpt,Room1,Room2  *
  58. * and the program calculates x,y,dx and dy from *
  59. * this information and stores it in a buffer.   *
  60. *************************************************
  61.  
  62. PointsToRotatePtr: dc.l 0
  63.  
  64. ***************************************
  65. LEVELDATA:
  66.  dc.l 0
  67.  
  68. ;LEVELDATAD: ds.b 100000
  69.  
  70. ; ds.b 100000
  71. ; incbin "tstlev.bin"
  72. ***************************************
  73.  
  74. *************************************************************
  75. * ROOM GRAPHICAL DESCRIPTIONS : WALLS AND FLOORS ************
  76. ************************************************************* 
  77.  
  78. ZoneBorderPts: dc.l 0
  79. CONNECT_TABLE: dc.l 0
  80. ListOfGraphRooms: dc.l 0
  81. NastyShotData: dc.l 0
  82. ObjectPoints: dc.l 0
  83. PlayerShotData: dc.l 0
  84. ObjectData: dc.l 0
  85. FloorLines: dc.l 0
  86. Points: dc.l 0
  87. PLR1_Obj: dc.l 0
  88. PLR2_Obj: dc.l 0
  89. PLR3_Obj: dc.l 0
  90. PLR4_Obj: dc.l 0
  91. PLR5_Obj: dc.l 0
  92. PLR6_Obj: dc.l 0
  93. PLR7_Obj: dc.l 0
  94. ZoneGraphAdds: dc.l 0
  95. ZoneAdds: dc.l 0
  96. NumObjectPoints: dc.w 0
  97. LiftData: dc.l 0
  98. DoorData: dc.l 0
  99. SwitchData: dc.l 0
  100. CPtPos: dc.l 0
  101. NumCPts: dc.w 0
  102. OtherNastyData: ds.l 20
  103. NumLevPts: dc.w 0
  104.  
  105. wall SET 0
  106. seethruwall SET 13
  107. floor SET 1
  108. roof SET 2
  109. setclip SET 3
  110. object SET 4
  111. curve SET 5
  112. light SET 6
  113. water SET 7
  114. bumpfloor SET 8
  115. bumproof SET 9
  116. smoothfloor SET 10
  117. smoothroof SET 11
  118. backdrop SET 12
  119.  
  120. GreenStone SET 0
  121. MetalA SET 4096
  122. MetalB SET 4096*2
  123. MetalC SET 4096*3
  124. Marble SET 4096*4
  125. BulkHead SET 4096*5
  126. SpaceWall SET 4096*6
  127. Sand SET 0
  128. MarbleFloor SET 2
  129. RoofLights SET 256
  130. GreyRoof SET 258
  131.  
  132. BackGraph:
  133.  dc.w -1
  134.  dc.w backdrop
  135.  dc.l -1
  136.  
  137. NullClip:
  138.  dc.l 0
  139.  
  140. LEVELGRAPHICS:
  141.  dc.l 0
  142.  
  143. ;LEVELGRAPHICSD:
  144. ; ds.b 50000
  145.  
  146. ; ds.b 50000
  147. ; incbin "tstlev.graph.bin"
  148. LEVELCLIPS: 
  149.  dc.l 0
  150.  
  151. ;LEVELCLIPSD:
  152. ; ds.b 50000
  153. ; ds.b 50000
  154. ; incbin "tstlev.clips"
  155.  
  156. ControlPts:
  157. ; incbin "ab3:includes/newlev.map"